package com.qyhl.school.school.reporter.list;


import com.qyhl.webtv.commonlib.entity.school.SchoolReporterActBean;

import java.util.List;

public class SchoolReporterActListPresenter implements SchoolReporterActListContract.SchoolReporterActListPresenter {
    private SchoolReporterActListContract.SchoolReporterActListView mView;
    private SchoolReporterActListModel mModel;

    public SchoolReporterActListPresenter(SchoolReporterActListContract.SchoolReporterActListView mView) {
        this.mView = mView;
        this.mModel = new SchoolReporterActListModel(this);
    }

    @Override
    public void getList(int lastId) {
        mModel.getList(lastId);
    }

    @Override
    public void doSign(String username, int actId) {
        mModel.doSign(username,actId);
    }

    @Override
    public void setList(List<SchoolReporterActBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }

    @Override
    public void signResult(boolean isSuccess, String msg) {
         mView.signResult(isSuccess,msg);
    }
}
